package com.masonluo.mlonlinejudge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
//import lombok.Data;
//import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 班级表
 * </p>
 *
 * @author testjava
 * @since 2021-08-18
 */
//@Data
@TableName("t_class")
//@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Class对象", description="班级表")
public class Class extends BaseEntity{

    @ApiModelProperty(value = "班级id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "高校id")
    private Integer schoolId;

    @ApiModelProperty(value = "班级名称")
    private String className;

//    @ApiModelProperty(value = "教师id")
//    private Integer teacherId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

//    public Integer getTeacherId() {
//        return teacherId;
//    }
//
//    public void setTeacherId(Integer teacherId) {
//        this.teacherId = teacherId;
//    }

    @Override
    public String toString() {
        return "Class{" +
                "id=" + id +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                ", schoolId=" + schoolId +'\''+
                ", teacherId=" + schoolId +'\''+
                ", className='" + className + '\'' +
                '}';
    }
}
